# Tanım: Acik kaynak kodlu OpenGL uyumlu grafik kutuphanesi
# URL: http://www.xorg-mesa3d.org
# Paketçi: milisarge
# Gerekler: wayland xorg-libx11 xorg-libdrm xorg-libxext xorg-libxdamage llvm elfutils xorg-libxshmfence wayland libvdpau
# Grup: kütüphane

isim=xorg-mesa
surum=17.1.8
devir=1

kaynak=(ftp://ftp.freedesktop.org/pub/mesa/mesa-$surum.tar.xz)

derle() {
	cd mesa-$surum

	CONFIG_SHELL=/bin/bash \
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-llvm \
		--enable-gbm \
		--enable-gles1 \
		--enable-gles2 \
		--enable-glx-tls \
		--enable-osmesa \
		--enable-texture-float \
		--enable-xa \
		--enable-vdpau \
		--enable-llvm-shared-libs \
		--disable-dependency-tracking \
		--with-platforms=x11,drm,wayland \
		--with-gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau  \
		--with-vulkan-drivers=intel,radeon

	make
	make DESTDIR=$PKG install
}
